package org.pombo.soe;

import org.pombo.gaf.FitnessFunction;
import org.pombo.gtm.Strategy;
import org.pombo.sqm.StrategyQualityMeasurer;

class StrategyFitnessFunction implements FitnessFunction<Strategy> {
	
	StrategyQualityMeasurer sqm;
	
	StrategyFitnessFunction(StrategyQualityMeasurer sqm) {
		this.sqm = sqm;
	}

	public double getFitness(Strategy strategy) {
		return this.sqm.measureStrategyQuality(strategy);
	}

}
